<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改升级记录表')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ble_upgrade_recordinfo-edit" th:object="${bleUpgradeRecordinfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">Obu Sn号：</label>
                <div class="col-sm-8">
                    <input name="obuSn" th:field="*{obuSn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">obu旧版本号：</label>
                <div class="col-sm-8">
                    <input name="obuVersion" th:field="*{obuVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">obu升级成功的新版本：</label>
                <div class="col-sm-8">
                    <input name="obuNewVersion" th:field="*{obuNewVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙名称：</label>
                <div class="col-sm-8">
                    <input name="bluetoothName" th:field="*{bluetoothName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙mac：</label>
                <div class="col-sm-8">
                    <input name="bluetoothMac" th:field="*{bluetoothMac}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙旧版本号：</label>
                <div class="col-sm-8">
                    <input name="bluetoothVersion" th:field="*{bluetoothVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蓝牙升级成功的新版本：</label>
                <div class="col-sm-8">
                    <input name="bluetoothNewVersion" th:field="*{bluetoothNewVersion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">升级时间：</label>
                <div class="col-sm-8">
                    <input name="upgradeTime" th:field="*{upgradeTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">操作员账号：</label>
                <div class="col-sm-8">
                    <input name="operAccount" th:field="*{operAccount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">升级标志：</label>
                <div class="col-sm-8">
                    <input name="isFlag" th:field="*{isFlag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">升级失败原因：</label>
                <div class="col-sm-8">
                    <input name="reason" th:field="*{reason}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "ble_upgrade_recordinfo/ble_upgrade_recordinfo";
        $("#form-ble_upgrade_recordinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-ble_upgrade_recordinfo-edit').serialize());
            }
        }
    </script>
</body>
</html>